package com.kinghunt.misp.dal.dao.userx;

import com.kinghunt.misp.dal.model.userx.UserRoleDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 用户-角色
* Created by Mybatis Generator on 2023/07/04
*/
public interface UserRoleDAO {
    int deleteByPrimaryKey(Long id);

    int deleteByUserId(Long userId);

    int insert(UserRoleDO record);

    int insertSelective(UserRoleDO record);

    UserRoleDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserRoleDO record);

    int updateByPrimaryKey(UserRoleDO record);

    List<Long> selectRoleIdsByUserId(Long userId);

    List<Long> selectUserByRoleId(@Param("list") List<Long> roleId);
}